<!DOCTYPE html>
<html lang="en">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>
    <body>
        <script>
            // every 的回调函数函数返回true或者false
            // 只要有一项返回false,every就返回false.全部返回true时every才返回true
            var scores = [5,8,3,10];
            if(scores.every(item=>{
                return item>7;
            })){
                alert("朕准了");
            }else{
                alert("朕不准");
            }
        </script>
    </body>
</html>